package top.rainf.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.rainf.domain.dto.AreaWithBlocks;
import top.rainf.domain.vo.Area;

import java.util.List;

/**
 * @author 星环
 * @date 2023/5/10 11:37:18
 * @description
 */
@Mapper
public interface AreaMapper {
    List<Area> selectAllArea();
    List<AreaWithBlocks> selectAreaWithBlocks();

    int addPostCount(int blockId);

    List<Area> getFullListPaged(@Param("from") int from,@Param("num") int numPerPage);
}
